package cn.school.stu.evaluation.service;

import cn.school.stu.evaluation.entity.StuEvaIndicator;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

/**
 * @author: lx
 * @date: 2023/5/24 11:06
 * @description: 考评指标service层
 */
public interface StuEvaIndicatorService {

    /**
     * 新建或修改考评指标
     * @param stuEvaIndicator
     * @return
     */
    int createStuEvaIndicator(StuEvaIndicator stuEvaIndicator);

    /**
     * 查询一级考评指标
     * @return
     */
    List<StuEvaIndicator> findFirstLevelIndicator();

    /**
     * 分页查询考评指标
     * @param queryParam
     * @return
     */
    List<StuEvaIndicator> findStuEvaIndicatorPageList(Map<String,Object> queryParam);


    List<StuEvaIndicator> findStuEvaIndicatorList(String id);

    /**
     * 根据考评指标id删除
     * @param id
     * @return
     */
    int deleteStuEvaIndicatorById(Long id);
	
    /**
     * 通过id获取二级指标
     * @author alex
     * @param: id
     * @date 2023/11/1 10:20
     * @return
     */
    Map<String, List<StuEvaIndicator>> getChildrenIndicatorById(String id);
}
